package com.example.mntz.dao;

import com.example.mntz.model.Account;
import com.example.mntz.model.AccountExample;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.example.mntz.model.Classs;
import org.apache.ibatis.annotations.Param;

public interface AccountMapper {
    long countByExample(AccountExample example);

    int deleteByExample(AccountExample example);

    int deleteByPrimaryKey(Integer accountId);

    int insert(Account record);

    int insertSelective(Account record);

    List<Account> selectByExample(AccountExample example);

    Account selectByPrimaryKey(Integer accountId);

    int updateByExampleSelective(@Param("record") Account record, @Param("example") AccountExample example);

    int updateByExample(@Param("record") Account record, @Param("example") AccountExample example);

    int updateByPrimaryKeySelective(Account record);

    int updateByPrimaryKey(Account record);

    List<Classs> selectbqs(Integer uid);

    Classs selectbq(@Param("uId")Integer getuId,@Param("classId") Integer classId);

    void updateClass(Classs c);

    void insertClass(Classs c);

    List<Account> selectaccounts(@Param("date") String date,@Param("uId") Integer uId);

    List<Classs> selectdsbqs();

    void insertdsAcc(Classs a);

    void insertAcc(Account account);

    List<Map> selecthPieClass(@Param("time")String time,@Param("redio") String redio,@Param("uId") Integer uId);
}